package cn.jy.finanlle.service.impl;

import cn.jy.common.domain.vo.ExpressRechargeRecordVo;
import cn.jy.finanlle.mapper.ExpressRechargeRecordMapper;
import cn.jy.finanlle.service.ExpressRechargeRecordService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExpressRechargeRecordServiceImpl implements ExpressRechargeRecordService {
    @Autowired
    private ExpressRechargeRecordMapper expressRechargeRecordMapper;

    @Override
    public PageInfo<ExpressRechargeRecordVo> selectExpressRechangeRecordList(ExpressRechargeRecordVo expressRechangeRecordVo) {
        PageHelper.startPage(expressRechangeRecordVo.getPageNum(), expressRechangeRecordVo.getPageSize());
        List<ExpressRechargeRecordVo> expressRechangeRecordVos = expressRechargeRecordMapper.selectExpressRechangeRecordList(expressRechangeRecordVo);
        PageInfo<ExpressRechargeRecordVo> expressRechangeRecordVoPageInfo = new PageInfo<>(expressRechangeRecordVos);
        return expressRechangeRecordVoPageInfo;
    }
}
